php $_SESSION[document_root] too far down the tree

Posted by Idealflip on Stack Overflow See other posts from Stack Overflow or by Idealflip
Published on 2010-05-28T15:58:58Z Indexed on 2010/05/28 16:02 UTC
Read the original article Hit count: 195

Filed under:

Hi, I have multiple sub-domains within the document_root. And multiple folders/classes within those sub-domain folders. I need something that will help me with my include_once paths, but $_SESSION[DOCUMENT_ROOT] goes too far down. And if I were to use this, and transfer the website folder later, all my include_once paths will/might break.

Hope my question is clear... Any recommendations?

© Stack Overflow or respective owner

Related posts about php